﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Image_Thumbnail.aspx.cs" Inherits="SControls_Image_Thumbnail" %>

<%@ Register Src="~/UIControls/WUC_UpFile.ascx" TagName="WUC_UpFile" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>上传缩略图</title>
    <base target="_self"/>
    <meta http-equiv="expires" content="0" /><!--页面不被缓存-->
<script type="text/javascript" src="../AdminCMS/js/UIMethod.js"></script>
</head>
<body style="text-align:center;">
<link id="mylink" href="../AdminCMS/css/style<%=UIMethod.GetStyleValue()%>.css" type="text/css" rel="stylesheet"/>
    <form id="form1" runat="server">
      
	  <table cellSpacing="0" cellPadding="0" width="100%" class="border" style="margin:1px;">
		<tr>
			<td class="tdbg_left" colspan="4">
			
			<uc1:WUC_UpFile ID="WUC_UpFile1" runat="server" IsChangeSize="true" FileSize="1000" FileType=".JPG|.GIF|.PNG" SaveDirectory="Image/" TypeTitle="地址" />
						
			</td>			
		</tr>
		<tr>
			<td style="text-align:right; width:60px; height:30px;" class="tdbg_left">宽度：</td>
			<td style="text-align:left;">
			<asp:TextBox ID="txt_width" runat="server" Columns="4" MaxLength="4" Text="400"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_width">*</asp:RequiredFieldValidator></td>
	
	<td style="text-align:right; width:60px; height:30px;" class="tdbg_left">高度：</td>
			<td style="text-align:left;">
			<asp:TextBox ID="txt_height" runat="server" Columns="4" MaxLength="4" Text="300"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_height">*</asp:RequiredFieldValidator>
	</td>
		</tr>
		
      
            <tr>
				<td colspan="2" class="tdbg_left"><asp:CheckBox ID="chk_changeSize" runat="server" Text="修改尺寸" Checked="true" /></td>
                <td colspan="2" style="text-align:center; height:40px;">
                    <input type="button" value="确定" onclick="doOK();" />
                </td>
            </tr>
        </table>
		<!--阴影-->
	<div style="width:98%;" class="tdbg_left2">
	</div>
	<!--阴影end-->
	
	
    </form>
</body>
</html>
<script type="text/javascript">
//获取传递的参数
var Selected = window.dialogArguments;
var obj = document.getElementById("<%= WUC_UpFile1.GetFileClientID %>");

function doOK() {    
    window.returnValue = obj.value;
    window.close();
}
</script>